﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace UBlockly.Compotent
{
    public class UDescAnchor : BlockAnchor ,IUAnchor
    {
        void IUAnchor.Resize()
        {
            //SetSize(new Vector2(GetComponent<UText>().))
        }
        void IUAnchor.SetPosition(Vector2 pos)
        {
            RectTransform.anchoredPosition = pos;
        }
        Vector2 IUAnchor.GetSize()
        {
            return base.GetSize();
        }
        Vector2 IUAnchor.GetPostion()
        {
            return RectTransform.anchoredPosition;
        }
    }
}

